﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CentaLine.Model
{
    public class VitualPhone
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { set; get; }
        /// <summary>
        /// 虚拟电话号码
        /// </summary>
        public string VitualPhoneNum { set; get; }
        /// <summary>
        /// 虚拟电话状态类别
        /// </summary>
        public PhoneKind PhoneKind { set; get; }
        /// <summary>
        /// 对应真实的号码
        /// </summary>
        public string ActulPhoneNum { set; get; }
        /// <summary>
        /// 对应的业务员id
        /// </summary>
        public string CounselorId { set; get; }
        /// <summary>
        /// 对应的业务员
        /// </summary>
        public string CounselorName { set; get; }
        /// <summary>
        /// 虚拟号码所属区董id
        /// </summary>
        public string  DirectorId { set; get; }
        /// <summary>
        /// 虚拟号码所属区董
        /// </summary>
        public string DirectorName{ set; get; }
        /// <summary>
        /// 虚拟电话当前状态
        /// </summary>
        public AssignStatus AssignStatus { set; get; }

        /// <summary>
        /// 对应申请ID
        /// </summary>
        public Int64 EShopApplyId { set; get; }

        public override string ToString()
        {
            return string.Format("所属总监:{0},虚拟电话:{1},真实电话:{2},电话类型:{3},对应申报ID:{4}",
                DirectorId,VitualPhoneNum,ActulPhoneNum,PhoneKind.Name,EShopApplyId);
        }
        /// <summary>
        /// 操作日志
        /// </summary>
        public VitualPhoneLog VitualPhoneLog { set; get; }
    }
    /// <summary>
    /// 虚拟电话类别
    /// </summary>
    public enum AssignStatus
    {
        失效=-1,
        未分配,
        已分配
    }
}
